package com.project.communitymanagement.controller;

import com.project.communitymanagement.common.BaseController;
import com.project.communitymanagement.entity.TbMessage;
import com.project.communitymanagement.service.TbMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ProjectName: community-management
 * @Package: com.project.communitymanagement.controller
 * @ClassName: TbMessageController
 * @Author: "XGP"
 * @Description:
 * @Date: 2022/3/13 12:59
 * @Version: 1.0
 */
@RestController
@CrossOrigin
@RequestMapping("tbmessage")
public class TbMessageController extends BaseController<TbMessageService, TbMessage> {

    @Autowired
    private TbMessageService tbmessageService;

    @Override
    protected TbMessageService service() {
        return tbmessageService;
    }
}
